package com.example.demo.model;

import lombok.Data;

@Data
public class PageRequest {

    private Integer currentPage=1;//当前页码, 设置默认值为1
    private Integer pageSize=10;//每页的记录数

    private Integer offset;

    public Integer getOffset() {
        return (currentPage - 1) * pageSize;
    }
}
